#ifndef CMUS_RG_H
#define CMUS_RG_H

#include "def.h"
#include "graphics.h"
#include "util.h"
#include "metadata.h"

void init_cmus_rg(TTF_Font **font, bool *render_change, cr_track **track, cr_player **player, int *frame);
void cleanup_cmus_rg(cr_track *track, cr_player *player);
void update_cmus_rg();

FILE *query_cmus();
void process_info(bool *update, cr_track *track, cr_player *player, uint64_t *previous_info_hash, bool *incomplete_parse);

void update_graphics_state(int token, cr_drawable *drawable, cr_drawable *drawextra, cr_state *state);

#endif